<?php
//
   $id=$_GET['id'];
   include 'dbcon.php';//连接数据库
   $sql="delete from t_message where id={$id}";
   $rs=$db->query($sql);
    if ($rs==true)
    {
        echo "<script language='javascript' type='text/javascript'>";
       // echo "alert('删除成功！');";
        echo "window.location.href='index.php'";
        echo "</script>";
    } 
    else
    {
        echo "<script language='javascript' type='text/javascript'>";
        echo "alert('删除失败！');";
        echo "window.location.href='index.php'";
        echo "</script>";
    }

